/*
 *  Copyright 2019-2020 Zheng Jie
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package me.zhengjie.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import me.zhengjie.util.ruoyiexcel.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author LongYang
 * @website https://el-admin.vip
 * @description /
 * @date 2021-06-28
 **/
@Data
@Accessors(chain = true)
@TableName("kw_exam_teacher")
@ApiModel(value = "ExamTeacher", description = "考场监考老师安排表实体类")
public class ExamTeacher {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "系统主键")
    private Integer id;

    @ApiModelProperty(value = "考场id")
    private Integer examRoomId;

    @ApiModelProperty(value = "教师工号")
    @Excel(name = "教师工号")
    private String jobNumber;

    @ApiModelProperty(value = "姓名")
    @Excel(name = "姓名")
    private String nameCn;

    @ApiModelProperty(value = "身份证")
    @Excel(name = "身份证")
    private String idCard;

    @ApiModelProperty(value = "标识")
    @Excel(name = "标识")
    private String alias;

    @ApiModelProperty(value = "教师id")
    private Integer teacherId;

    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    @ApiModelProperty(value = "监考教师类型（0：上报，1：报名）")
    @Excel(name = "监考教师类型", readConverterExp = "0=上报,1=报名")
    private String type;

    @ApiModelProperty(value = "删除标识（0：未删除，1：已删除）")
    private String delFlag;

    @ApiModelProperty(value = "手机号")
    @Excel(name = "手机号")
    private String phone;

    @ApiModelProperty(value = "考试id")
    private Integer examId;

    @ApiModelProperty(value = "老师身份类型（0代表监考老师，1代表考务人员，2代表特殊人员）")
    @Excel(name = "老师身份类型", readConverterExp = "0=监考老师,1=考务人员,2=特殊人员")
    private String identity = "0";

    @ApiModelProperty(value = "签到状态(0代表未签到，1代表已签到)")
    private String checkinStatus;

    @ApiModelProperty(value = "签到时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date checkinTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建日期")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("教室id")
    private Integer roomId;

    @ApiModelProperty("替补老师")
    private Integer replaceTeacherId;

    @ApiModelProperty(value = "性别 0=男,1=女")
    private Integer sex = 0;


}